package cc.messcat.dao.fupin;

import java.util.List;

import cc.messcat.common.dao.BaseDao;
import cc.messcat.common.model.Pager;
import cc.messcat.entity.fupin.Family;
import cc.messcat.entity.fupin.FamilyHistory;
import cc.messcat.entity.system.McUser;

public interface FamilyDao extends BaseDao<Family>{

	Pager laborTypeStatistics(McUser user, Integer pageNo, Integer pageSize, String year, String country, String village,
		String poverty);
	
	Pager popuHealthyStatisPager(Integer pageNo, Integer pageSize,McUser user, String year, String country,String village, String poverty);

	Pager popuCultureStatisPager(Integer pageNo, Integer pageSize,McUser user, String year, String country,String village, String poverty);

	Pager ductionLifeStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country,
			String village, String poverty);

	Pager landResourceStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country, String village,
			String poverty);

	Pager capitaIncomeStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country,
			String village, String poverty);

	Pager fuelTypeStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country,
			String village, String poverty);

	Pager entranceRoadStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country,
			String village, String poverty);

	Pager familyIncomeStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country,
			String village, String poverty);

	Pager transferableIncStatisPager(Integer pageNo, Integer pageSize, McUser user, String year, String country,
			String village, String poverty);

	void modifyObject2(Family family);

	Long addFamily(Family family);

	void delFamilyPfId(List<Long> id);

	/**
	 * 添加家庭成员变更历史
	 * @param familyHistory
	 * @return
	 */
	Long addFamilyHistory(FamilyHistory familyHistory);

	void merge(Family f);

	Family findRelationByFid(Long pfId);

}
